package com.ybliang.plat.common.module.redis.configuration.properties;

import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.LinkedHashMap;

/**
 * multi redis 配置
 * @author liangyb1
 */
// @ConfigurationProperties(prefix = MultiRedisProperties.PREFIX)
public class MultiRedisProperties {

    public static final String PREFIX = "spring.redis";

    private LinkedHashMap<String, RedisProperties> multis;

    /**
     * 主redis
     */
    private RedisProperties master;

    /**
     * sse 使用的redis
     */
    private RedisProperties sse;

    public RedisProperties getMaster() {
        return master;
    }

    public void setMaster(RedisProperties master) {
        this.master = master;
    }

    public RedisProperties getSse() {
        return sse;
    }

    public void setSse(RedisProperties sse) {
        this.sse = sse;
    }

    public LinkedHashMap<String, RedisProperties> getMultis() {
        return multis;
    }

    public void setMultis(LinkedHashMap<String, RedisProperties> multis) {
        this.multis = multis;
    }
}
